package cn.ren.controller;

import cn.ren.entity.PageResult;
import cn.ren.entity.QueryPageBean;
import cn.ren.service.BodyService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @program: exercise_health
 * @description:
 * @author: ren
 * @create: 2020-03-11 17:16
 **/
@RestController
@RequestMapping("/body")
public class BodyController {
    @Reference
    private BodyService bodyService;

    @RequestMapping("/findAll")
    public PageResult findAll(@RequestBody QueryPageBean queryPageBean){
       return bodyService.findByCondition(queryPageBean);
    }
}
